<?php 
include "../AdminController/AddManagerController.php"; 
?>

	<form action='?page=AddManager' method='post' />
	<table>
		<th>Add Manager</th>
		<tr>
			<td>Manager Name</td>
			<td><input type='text' name='managername' id='managername'
				value='<?php echo $manager->getName(); ?>' /></td>
			<td><?php if($validationName) echo "Please, enter name!"; 
					  if($managerNameExists) echo "This name is not availible!";
			?></td>	
		</tr>
		<tr>
			<td>Password</td>
			<td><input type='password' name='password' id='password' /></td>
			<td><?php if($validationPassword) echo "Please, enter valid password!"; ?></td>
		</tr>
		<tr>
			<td>Email</td>
			<td><input type='text' name='email' id='email' value="<?php echo $manager->getEmail(); ?>"/></td>
			<td><?php if($validationEmail) echo "Please, enter valid email address!"; 
			 		  if($managerEmailExists) echo "This email is not availible!";
			?></td>
		</tr>
		<tr>
			<td>Team Name</td>
			<td><input type='text' name='team' id='team'
				value='<?php echo $team->getTeamName(); ?>' /></td>
			<td><?php if($validationTeam) echo "Please, enter team name!"; 
					  if($teamNameExists) echo "This team name is not availible!";
			?></td>	
		</tr>
		<tr>
			<td></td>
			<td><input type='submit' name='addmanager' value="Add Manager" /></td>
		</tr>
	</table>
	</form>

